package com.example.lucky.draw.server.service;

import com.example.lucky.draw.server.protocol.po.Activity;
import com.example.lucky.draw.server.protocol.po.Prize;
import com.example.lucky.draw.server.protocol.query.ActivityQuery;
import org.json.JSONException;
import sun.java2d.pipe.AAShapePipe;

import java.util.List;

public interface IActivityService {

    List<Activity> findAll(ActivityQuery activityQuery);

    List<Activity> findAll();

    void save(Activity activity);

    Activity findActivityById(Long id);

    Prize trigger(Long id) throws JSONException;
}
